package com.coolrui.domain.statemachine.enums;

import lombok.Getter;

// 订单支付状态
@Getter
public enum OrderPayState {
    UNPAID(0, "待支付"),
    PAID(1, "已支付"),
    REFUND(10, "已退款");

    // 使用 final 修饰，确保字段不可变
    private final Integer code;
    private final String desc;

    OrderPayState(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}